package cc.mrbird.febs.material.domain;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 *
 *
 * @author mg
 */
@Data

@TableName("material_library")
@Excel("测试导入导出数据")
public class MaterialLibrary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String code;

    @TableField("name")
    @ExcelField(value = "名称", required = true,
            comment = "提示：必填")
    private String name;

    private String type;

    @TableField("jldw")
    @ExcelField(value = "单位", required = true,
            comment = "提示：必填")
    private String jldw;

    @TableField("num")
    @ExcelField(value = "数量", required = true, maxLength = 11, regularExp = "[0-9]+",
            regularExpMessage = "必须是数字", comment = "提示: 必填，只能填写数字，并且长度不能超过11位")
    private Integer num;

    private String model;

    private Date updateTime;

    private Date createTime;

    private transient String createTimeFrom;
    private transient String createTimeTo;
}
